#ifndef USERCLASS_H
#define USERCLASS_H
#include <string>
using namespace std;
class UserClass
{
    public:
        /** Default constructor */
        UserClass();
        /** Default destructor */
        virtual ~UserClass();

        /** Access name
         * \return The current value of name
         */
        string Getname() { return name; }
        /** Set name
         * \param val New value to set
         */
        void Setname(string val) { name = val; }
        /** Access password
         * \return The current value of password
         */
        string Getpassword() { return password; }
        /** Set password
         * \param val New value to set
         */
        void Setpassword(string val) { password = val; }
        /** Access user_type
         * \return The current value of user_type
         */
        int Getuser_type() { return user_type; }
        /** Set user_type
         * \param val New value to set
         */
        void Setuser_type(int val) { user_type = val; }

    protected:

    private:
        string name; //!< Member variable "name"
        string password; //!< Member variable "password"
        /**
        *0-管理员
        *1-顾客
        */
        int user_type; //!< Member variable "user_type"
};

#endif // USERCLASS_H
